#设置脚本的基础设置：企微通知，账号，密码
import requests
import time



def notice(message):
    time_start = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
    url = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1f2897da-0b25-4fb1-94c5-67e6bc0f5b72"
    data = {"msgtype": "text", "text": {"content": "【"+time_start+"】"+message}}
    response = requests.post(url, json=data)

